package spe.ui.editor.figure;

import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.ImageFigure;
import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.ToolbarLayout;
import org.eclipse.draw2d.XYLayout;
import org.eclipse.swt.graphics.Image;

import spe.Activator;

public class MethodContentPackageFigure extends SPEFigureImpl
{
	public MethodContentPackageFigure()
	{
		setLayoutManager(new XYLayout());
		Image image = Activator.getDefault().getImage(Activator.IMG_METHODCONTENTPACKAGE);
		
		imgFigure = new ImageFigure(image);
		nameLabel = new Label();
				
		add(imgFigure, ToolbarLayout.ALIGN_CENTER);
		add(nameLabel, ToolbarLayout.ALIGN_CENTER);
		setBackgroundColor(ColorConstants.lightGreen);
		setOpaque(true);
	}
}
